package org.oop7.jihe;

import java.util.ArrayList;
import java.util.List;

public class Demo1 {
		public static void main(String[] args){
			Student stu1 = new Student(12,"张三");
			List list = new ArrayList();
			list.add("集合1");
			list.add("集合2");
			list.add(3);
			list.add(8);
			list.add(null);
			list.add(stu1);
			System.out.println(list.size());
			System.out.println(list);
			System.out.println(list.get(2));
			System.out.println(list.contains(3));
			System.out.println(list.remove(3));
			System.out.println(list);
			System.out.println(list.remove(new Integer(3)));
			System.out.println(list);
			list.clear();
			//System.out.println();
			System.out.println(list);
		}
}
